﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using SZSLSystem.Common;
using SZSLSystem.Web.UI;

namespace SZSLSystem.Web.Admin
{
    public partial class Admin_index : ManagePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                try
                {
                    lblAdminName.Text = Session["AdminName"].ToString();
                }
                catch
                {

                }
            }
        }

        protected void lbtnExit_Click(object sender, EventArgs e)
        {
            Session["AdminNo"] = null;
            Session["AdminName"] = null;
            Session["AdminType"] = null;
            Session["AdminLevel"] = null;
            Utils.WriteCookie("AdminName", "SZSLSystem", -1440);
            Utils.WriteCookie("AdminPwd", "SZSLSystem", -1440);
            Response.Redirect("Login.aspx");
        }
    }
}
